You can create a tool
on a tool palette that executes a single command or a string of
commands.
You
can add frequently used commands to a tool palette. When the Customize
dialog box is open, you can drag tools from a toolbar to a tool
palette or you can drag tools from the Customize User Interface
(CUI) Editor to a tool palette.
Once you add a command
to a tool palette, you can click the tool to execute the command.
For example, clicking a Save tool on a tool palette saves a drawing
just as the Save button on the Standard toolbar does.
You can also create a tool that executes a string
of commands or customized commands, such as an AutoLISP® routine,
a VBA macro or application, or a script.
NoteEven though the tools
on palettes can be clicked when the Customize User Interface (CUI)
Editor is displayed, the end results might be unpredictable. It
is best to not use any of the tools on a palette while the Customize
User Interface (CUI) Editor is displayed.
To create a command tool
from a toolbar button
- Make sure the toolbar that contains the
command you want to add to the tool palette is displayed.
If the required toolbar
is not displayed, click Tools
Toolbars
and select another toolbar from the list.
NoteEven though you won't
make any changes in the Customize dialog box in this procedure,
it must be displayed when you add command tools to a tool palette.
- In the program, drag a command (button)
from a toolbar to the tool palette and, without releasing the mouse
button, move the cursor to the place on the tool palette where you
want the tool.
The black horizontal
line indicates where the tool will be located.
- Release the mouse button.
- In the Customize dialog box, click Close.
To create a command tool
from the Customize User Interface
If the CUI Editor is
covering the Tool Palettes window, then move the CUI Editor to the
side.
- In the Command List pane, drag a command
to the tool palette and, without releasing the mouse button, move
the cursor to the place on the tool palette where you want the tool.
The black horizontal
line indicates where the tool will be located.
- Release the mouse button.
- In the CUI Editor, click Close.
To create a command tool
that executes multiple or customized commands (advanced)
- In the program, drag
a command from a toolbar to the tool palette and, without releasing
the mouse button, move the cursor to the place on the tool palette
where you want the tool.
- Release the mouse button.
- On the tool palette,
right-click the tool. Click Properties.
- In the Tool Properties
dialog box, change the name and description to an appropriate name
and description for the string, AutoLISP routine, or script.
- Under Command, in the
Command String box, enter a string of commands or customized commands,
such as an AutoLISP routine, a VBA macro or application, or a script.
- Click OK.
To use a command tool
- On a tool palette, click the command
tool that you want to use.
- Follow any Command prompts that are shown.
CommandsCUI
Manages the customized
user interface elements in the product.
CUSTOMIZE
Customizes tool palettes
and tool palette groups.
TOOLPALETTES
Opens the Tool Palettes
window.
TOOLPALETTESCLOSE
Closes the Tool Palettes
window.